package com.wecan.base.constants;

/**
 * @Author liuzhihao
 * @Date 2022.01.15
 * @Version 1.0.0
 * @Description 缓存key前缀
 */
public class RedisKey {

    // 限流
    public static final String ACCESS_LIMIT_PREFIX = "limit_";

    // 验证码
    public static final String PHONE_VALIDATE_CODE = "code_";
    public static final int PHONE_VALIDATE_CODE_EXPIRE_TIME = 1800;

    // 用户推广
    public static final String USER_POSITION_ID = "user_pid_";
    public static final int USER_POSITION_ID_EXPIRE_TIME = 2592000;

    // 系统角色权限
    public static final String USER_ROLE = "user_role_";
    public static final String ROLE_PERMISSION = "role_permission";
    public static final int USER_PERMISSION_EXPIRE_TIME = 86400;

    // 优惠券数量
    public static final String COUPON_KEY = "coupon_";
    // 微信支付id
    public static final String WX_PAY_ORDER = "wx_pay_";

}
